/**
 * 课程类：独立实体类
 */
public class Course {
    // 私有属性（仅本类可访问）
    private String courseId;    // 课程编号
    private String courseName;  // 课程名称
    private String location;    // 上课地点
    private String time;        // 上课时间
    private String teacherId;   // 授课教师ID

    // 构造方法：初始化课程基础信息
    public Course(String courseId, String courseName, String location, String time) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.location = location;
        this.time = time;
    }

    // Getter和Setter方法（public修饰：外部可访问）
    public String getCourseId() { return courseId; }
    public String getCourseName() { return courseName; }
    public String getLocation() { return location; }
    public String getTime() { return time; }
    public String getTeacherId() { return teacherId; }
    public void setTeacherId(String teacherId) { this.teacherId = teacherId; }
}